//import 'package:flutter/cupertino.dart';
//import 'package:flutter/material.dart';
//import 'package:rebase_project/generated/l10n.dart';
//import 'package:rebase_project/res/dimens.dart';
//import 'package:rebase_project/res/style.dart';
//import 'package:rebase_project/src/base/framework/ability/cache_ability.dart';
//import 'package:rebase_project/src/base/framework/ability/navigator_ability.dart';
//import 'package:rebase_project/src/base/framework/base_provider.dart';
//import 'package:rebase_project/src/base/framework/base_widget.dart';
//import 'package:rebase_project/src/base/framework/widget/CNavigatorBar.dart';
//import 'package:rebase_project/src/base/framework/widget/defalut_page_state_widget.dart';
//import 'package:rebase_project/src/base/widget/Button.dart';
//import 'package:rebase_project/src/base/widget/EditText.dart';
//import 'package:rebase_project/src/base/widget/line.dart';
//import 'package:rebase_project/src/module/Test3Widget.dart';
//import 'package:rebase_project/src/provider/Mmp2Notify.dart';
//import 'package:rebase_project/src/provider/MmpNotify.dart';
//
//class Test2Widget extends StatefulWidget with CreateProvider<Mmp2Notify>{
//  @override
//  _Test2WidgetState createState() => _Test2WidgetState();
//
//  @override
//  CunwControllNotify createSingleValue(BuildContext context) {
//    return Mmp2Notify();
//  }
//
//}
//
//class _Test2WidgetState extends State<Test2Widget>
//    with
//        BaseWidget<Test2Widget, Mmp2Notify>,
//        DefalutPageStateWidgetMixin,
//        NavigatorActionMixin,
//        CacheMixin {
//  String phone;
//  String pwd;
//
//  @override
//  Widget initView() {
//    return Container(
//      padding: EdgeInsets.only(top: dip(150), left: dip(30), right: dip(30)),
//      child: Column(
//        children: <Widget>[
//          Edittext(
//            placeholder: "请输入手机号",
//            onChanged: (c) => setState(() {
//              phone = c;
//            }),
//          ),
//          HLine(
//            height: dip(30),
//          ),
//          Edittext(
//            placeholder: "请输入密码",
//            onChanged: (c) => setState(() {
//              pwd = c;
//            }),
//            obscureText: true,
//          ),
//          HLine(
//            height: dip(90),
//          ),
//          Button(
//            padding:
//                EdgeInsets.symmetric(vertical: dip(10), horizontal: dip(100)),
//            color: Colors.lightBlueAccent,
//            onPressed: phone != null &&
//                    phone.length == 11 &&
//                    pwd != null &&
//                    pwd.length >= 6
//                ? () async => mController.login(phone, pwd)
//                : null,
//            child: Text(
//              "登录",
//              style: text_fff_15,
//            ),
//          )
//        ],
//      ),
//    );
//  }
//
//  @override
//  Widget title() {
//    return null; //CNavigatorBar.create(title: "测试2").build(context);
//  }
//
//  @override
//  Future initData() {
//    return mController.complete();
//  }
//}
